//
//  BaseViewController.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/4/19.
//

#import <UIKit/UIKit.h>
#import "JPNavigationBar.h"

NS_ASSUME_NONNULL_BEGIN

@interface BaseViewController : UIViewController

@property (nonatomic,strong,readonly)JPNavigationBar *customNavigationBar;
@property(nonatomic,assign)CGFloat currentAvailableWidth;
@property(nonatomic,assign)CGFloat currentAvailableHeight;

@end

@interface BaseViewController (Utils)

@property (nonatomic,assign,getter=isCustomNavigationBarHidden) BOOL customNavigationBarHidden;


- (void)defaultBackSet;
- (void)dischargeLeftOfNavBar;
-(CGFloat)getStringHeightWithText:(NSString *)text font:(UIFont *)font viewWidth:(CGFloat)width;
-(CGFloat)getStringWidthWithText:(NSString *)text font:(UIFont *)font viewHeight:(CGFloat)height;
-(UIViewController*)currentViewController;
-(void)popGestureClose;
-(void)popGestureOpen;
-(void)needLogin;

@end

NS_ASSUME_NONNULL_END
